<template>
	<view class="wrap">
		<u-text :text="detailInfo.title" bold color="#333" size="34rpx" margin="0 0 26rpx"></u-text>
		<view class="flex time">
			<text style="color: #576b95; margin: 0">野人体育</text>
			<text>{{ detailInfo.time }}</text>
			<!-- <text>河北</text> -->
		</view>

		<u-parse :content="detailInfo.content"></u-parse>
	</view>
</template>

<script>
const app = getApp()
export default {
	data() {
		return {
			imgUrl: app.globalData.ossUrl,
			detailInfo: {}
		}
	},
	onLoad(options) {
		this.getInfo(options.id)
	},
	methods: {
		getInfo(id) {
			uni.showLoading({ title: '数据加载中' })
			/* prettier-ignore */
			this.$https(false, 'get', {
					url: '/race/article/info/'+id,
					data: { id }
				}, (res) => {
					this.detailInfo = res.data
				})
			/* prettier-ignore */
		}
	}
}
</script>

<style lang="scss" scoped>
.wrap {
	padding: 20rpx 32rpx;
	position: relative;
}
.flex {
	display: flex;
	align-items: center;
}
::v-deep {
	.time {
		margin-bottom: 50rpx;
		text {
			line-height: 32rpx;
			color: #bebebe;
			font-size: 28rpx;
			margin-left: 24rpx;
			margin-top: 4rpx;
		}
	}
}
</style>
<style lang="scss">
page {
	background: #fff;
}
</style>
